package edu.buct.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MemberServiceAsync {
    // 测试线程池用的
    @Async("executorService")
    public String sms(){
        log.info("2");
        try {
            log.info("");
            Thread.sleep(3000);
        }catch (Exception e){

        }
        log.info("3");
        return "success";
    }
}
